package com.zhuimeng.redisdemo.controller;

import com.zhuimeng.redisdemo.pojo.Position;
import com.zhuimeng.redisdemo.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PositionController {
    @Autowired
    private PositionService positionService;

    @GetMapping("/test")
    public List<Position> test(){
        return positionService.getResume();
    }
}
